package com.peng.ivos.base.exception;

import com.peng.ivos.base.response.StatusCode;
import lombok.Getter;

/**
 * @author： Peng
 * @date： 2024/5/20
 * @version: 1.0
 */
//1.自定义业务异常类
public class ServiceException extends RuntimeException{
    @Getter
    private StatusCode statusCode;
    @Getter
    private String msg;
    //Alt+Insert 一直回车 生成该类的构造函数
    public ServiceException(StatusCode statusCode,String msg) {
        this.statusCode = statusCode;
        this.msg = msg;
    }
}
